<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/1/2
 * Time: 21:49
 */


//stripos — 查找字符串首次出现的位置（不区分大小写）

//int stripos ( string $haystack , string $needle [, int $offset = 0 ] )


$haystack = "the year is 2017,so I want to do some import things of this year";
//           0123456789
$pos      = stripos( $haystack, "YEar" ); //full match
echo $pos.PHP_EOL;

